projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bbe2cc
)
(x_own_selection): Catch errors around XSetSelectionOwner.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 4 May 1994 00:46:39 +0000
(
00:46
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 4 May 1994 00:46:39 +0000
(
00:46
+0000)
src/xselect.c
patch
|
blob
|
history
diff --git
a/src/xselect.c
b/src/xselect.c
index ef3a78d694dc1d04b0343a96c1004c7830df14a4..bd5b979d257efc0f8ce6e5a8a5049e7f87866be0 100644
(file)
--- a/
src/xselect.c
+++ b/
src/xselect.c
@@
-249,7
+249,10
@@
x_own_selection (selection_name, selection_value)
selection_atom = symbol_to_x_atom (display, selection_name);
BLOCK_INPUT;
+ x_catch_errors ();
XSetSelectionOwner (display, selection_atom, selecting_window, time);
+ x_check_errors ("Can't set selection: %s");
+ x_uncatch_errors ();
UNBLOCK_INPUT;
/* Now update the local cache */